<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>系统后台 - Tpcms内容管理系统 - by Tpcms</title>
<?php if(CONTROLLER_NAME == "Login"): ?><link rel="stylesheet" type="text/css" href="/Data/Public/admin/css/admin_login.css"  />
<link rel="stylesheet" type="text/css" href="/Data/Public/admin/css/admin_default_color.css" />
<?php else: ?>
<link href="/Data/Public/admin/css/admin_style.css" rel="stylesheet" />
<link href="/Data/Public/org/artDialog/skins/default.css" rel="stylesheet" /><?php endif; ?>

<script type='text/javascript'>
MODULE='/index.php/Admin'; //当前模块
CONTROLLER='/index.php/Admin/AuthGroup'; //当前控制器)
ACTION='/index.php/Admin/AuthGroup/index';//当前方法(方法)
ROOT=''; //当前项目根路径
PUBLIC= '/Data/Public/admin';//当前定义的Public目录
</script>
<script src="/Data/Public/org/wind.js"></script>
<script src="/Data/Public/org/jquery.js"></script>
</head>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
        <li class="current"><a href="javascript:;">角色管理</a></li>
        <li ><a href="<?php echo U('AuthGroup/add');?>">添加角色</a></li>
    </ul>
  </div>
  <div class="table_list">
  <table width="100%" cellspacing="0" >
    <thead>
      <tr>
        <td width="50" align="left">id</td>
        <td>角色名称</td>
        <td>状态</td>
        <td width="230" align="center">管理操作</td>
      </tr>
    </thead>
    <tbody>
    <tr>
    	<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><td align='left'><?php echo ($value["id"]); ?></td>
        <td><?php echo ($value["title"]); ?></td>
        <td><?php if($value[status]): ?>启用<?php else: ?>禁用<?php endif; ?></td>
        <td align='center'>
	        <a href="<?php echo U('AuthGroup/rule',array('id'=>$value["id"]));?>">设置权限</a>
	        |
	       	<a href="<?php echo U('AuthGroup/edit',array('id'=>$value["id"]));?>">修改</a>
	       	|
	       	<a class="J_ajax_del" href="<?php echo U('AuthGroup/del',array('id'=>$value["id"]));?>">删除</a>
       	</td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     </tbody>
  </table>
  </div>
</div>
<script type="text/javascript" src="/Data/Public/admin/js/mod.common.js"></script><script type="text/javascript">

</script>
</body>
</html>